#ifndef __SYSTEMDEF_H
#define __SYSTEMDEF_H

#include "stdint.h"

typedef enum{
	FLAG_RESET = 0,
	FLAG_SET   = !FLAG_RESET
}Flag_Status_t;

typedef struct {
    uint16_t trigger_flag       : 1;
    uint16_t cal_flag           : 1;
    uint16_t sensor_rdy_flag    : 1;
    uint16_t test_sensor        : 1;
    uint16_t detection_led_rdy  : 1;
    uint16_t enable_fill_led    : 1;
    uint16_t disable_fill_led   : 1;
    uint16_t data_rdy           : 1;
	uint16_t parameter_flag     : 1;
    uint16_t rese               : 10;
    uint16_t sampling_count;
	uint16_t breathing_thd;   
	uint8_t breathing_count;
} SystemFlags_t;	
	
	


#endif
